#include<stdio.h>

int main(int argc, char *argv[])
{
	int i;
	int j;
	int sum;

	for(i = 1; i<=100; i++){
		sum = 0;
		for(j = 1; j<=i;j++){
			sum += j;		
		}
		printf("%d的前n项和是：%d\n", i, sum);
	}
	return 0;
}
